package com.ihr360.oneclick.dto;

import com.ihr360.commons.model.entity.StringIdWithTime;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

@Entity
@Table(name = "tab_term_meta",
        indexes = {
                @Index(name = "tab_term_id_idx", columnList = "termId"),
                @Index(name = "tab_meta_key_idx", columnList = "metaKey")})
public class OneClickTermMetaDto extends StringIdWithTime {

    @Column(length = 40, nullable = false)
    private String termId;

    /**
     * mete的key 例如：导入说明 importIntroduce
     */
    @Column(length = 150)
    private String metaKey;
    /**
     * meta信息的描述: 例如：导入说明: 导入是需要遵循的规范,可以是html或者纯文本内容
     */
    @Column(columnDefinition = "longtext")
    private String metaValue;

    public String getTermId() {
        return termId;
    }

    public void setTermId(String termId) {
        this.termId = termId;
    }

    public String getMetaKey() {
        return metaKey;
    }

    public void setMetaKey(String metaKey) {
        this.metaKey = metaKey;
    }

    public String getMetaValue() {
        return metaValue;
    }

    public void setMetaValue(String metaValue) {
        this.metaValue = metaValue;
    }

}